package com.ruimei.util;

import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;

public class AliOssObjectStore
{
  public static String upLoadToOss(MultipartFile multipartFile, HttpServletRequest req)
  {
    String filePath = "";
    try
    {
      File file = MultpartfileUtil.multipartToFile(multipartFile);
      filePath = AliyunOSSClientUtil.uploadObject2OSS(AliyunOSSClientUtil.getOSSClient(), file, "sagiri", "teacher/");
    }
    catch (IOException e)
    {
      e.printStackTrace();
    }
    return filePath;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruime\\util\AliOssObjectStore.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */